package com.gxa.check.service;

import dto.ResultDTO;

/**
 * 审核表(Examine)表服务接口
 *
 * @author makejava
 * @since 2021-05-11 15:23:47
 */
public interface ExamineService {

    /**
     * 根据机械单增加审批单
     * @param macOrderId
     * @return
     */
    ResultDTO addMac(Integer macOrderId);

    /**
     * 通过机械单
     * @return
     */
    ResultDTO possMacOrder(Integer macOrderId, Integer memberId);

    /**
     * 拒绝机械单
     * @param macOrderId
     * @param refuseMsg
     * @param memberId
     * @return
     */
    ResultDTO refuseMacOrder(Integer macOrderId, String refuseMsg, Integer memberId);

    /**
     * 通过人工单
     * @param artOrderId
     * @param memberId
     * @return
     */
    ResultDTO possArtOrder(Integer artOrderId, Integer memberId);

    /**
     * 拒绝人工单
     * @param artOrderId
     * @param memberId
     * @return
     */
    ResultDTO refuseArtOrder(Integer artOrderId, Integer memberId, String refuseMsg);

    /**
     * 查询机械单的审核人
     * @param macOrderId
     * @return
     */
    ResultDTO exaMacOrderMember(Integer macOrderId);

    /**
     * 查询人工单的审核人
     * @return
     */
    ResultDTO exaArtOrderMember(Integer artOrderId);

    /**
     * 检查审核状态
     * @param orderId
     * @param type
     * @return
     */
    ResultDTO checkOrder(Integer orderId, Integer type);

    ResultDTO findAllDept();

}
